export default {
  name: 'SelectList',
  props: ['label', 'selectList'],
  data() {
    return {
      ifShow: false,
      nowValue: '',
      dataList: this.selectList,
    }
  },
  methods: {
    showPopup() {
      this.ifShow = true
    },
    dataCancel() {
      this.ifShow = false
    },
    dataConfirm(event) {
      const { picker, value, index } = event.detail
      this.nowValue = value
      this.$emit('getSelectData', value)
      this.dataCancel()
    }
  },
}
